package com.ticket.sass.provider.dto.input.film;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author ywb
 * @date 2024-01-10 11:11
 */
@Data
@ApiModel(description = "电影发行版本输入")
public class FilmVersionInput {
    @NotBlank(message = "版本>名称不能为空")
    @ApiModelProperty(value = "发行版本", required = true)
    private String name;
    
    @Size(min = 12, max = 12, message = "版本>编码格式错误")
    @NotBlank(message = "版本>编码不能为空")
    @ApiModelProperty(value = "影片编码", required = true)
    private String code;
}
